package org.cboard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.cboard.pojo.DashboardWidgetLink;
import org.springframework.stereotype.Repository;

/**
 * Created by yfyuan on 2016/8/122.
 */
@Repository
public interface WidgetLinkDao {

    List<DashboardWidgetLink> getAllWidgetList();

    List<DashboardWidgetLink> getWidgetList(String userId);

    List<DashboardWidgetLink> getWidgetListAdmin(String userId);

    int save(DashboardWidgetLink dashboardWidget);

    int update(DashboardWidgetLink dashboardWidget);

    int delete(Long id, String userId);

    DashboardWidgetLink getWidget(Long id);
    
    List<DashboardWidgetLink> getRelationWidget( @Param("id") Long id,@Param("idList") List<Long> idList);
}
